// 社保类型子表
import request from "@/utils/https/requests";

// 列表
export function sbTypeSubList(data: any) {
    return request({
        url: "/sbTypeSub/list", method: "post", data,
    });
}

// 添加
export function postAddSbTypeSub(data: any) {
    return request({
        url: "/sbTypeSub/postAdd", method: "post", data,
    });
}

// 修改
export function postModSbTypeSub(data: any) {
    return request({
        url: `/sbTypeSub/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteSbTypeSub(id: string) {
    return request({
        url: `/sbTypeSub/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteSbTypeSub = (id) => {
    return request({
        url: `/sbTypeSub/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function sbTypeSubDetail(id: string) {
    return request({
        url: `/sbTypeSub/detail/${id}`, method: "post",
    });
}